API keys are not meant for IAM authentication and authorization. For more information, see the AWS documentation.
References:
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html#apigateway-usage-plans-best-practices
In AWS Console -
In Terraform -